#ifndef STATUS_H
#define STATUS_H

#include <QtNetwork>

class Status
{

  public:
    Status(QHostAddress,quint16);
    
    void setOrientation(double,double,double);
    void setTemperature(double);
    void setPressure(double);
    void setAmbientPressure();
    
    double getRoll();
    double getPitch();
    double getYaw();
    double getTemperature();
    double getPressure();
    double getDepth();
    
    bool isConnected();
    
    void setConnected(bool);
    
    void setMotor(int,double,double,double);
    void getMotor(int, double*);
    
    int Alive();
    void update();
    
    QHostAddress getHost();
    quint16 getPort();
    
  private:
    void calcDepth();
        
    double roll,
           pitch,
           yaw,
           temperature,
           pressure;
           
    double scv1s,//speed
      scv1t,//temperature
      scv1v,//VIN
      scv2s,//speed
      scv2t,//temperature
      scv2v,//VIN
      scv3s,//speed
      scv3t,//temperature
      scv3v,//VIN
      scf1s,//speed
      scf1t,//temperature
      scf1v,//VIN
      scf2s,//speed
      scf2t,//temperature
      scf2v,//VIN
      scls,//speed
      sclt,//temperature
      sclv;//VIN
           
    int timeAck;
    
    bool connected;
    
    double ambientPressure;
    double depth;
    
    quint16 port;
    QHostAddress host;
};

#endif
